;(function($){
    $.noticeWtdl=function(){
        /**
         **初始化方法
         **/
        var por_id ="";
        var init = function(id, title,content) {
            por_id=id
            var windowWidth=$(document).width();
            var windowHeight=$(document).height();
            var weight=430;
            var height=280;
            $("body").append(
                "<div id='"+id+"'style='display:none;background:white;position:absolute;border:1px solid #e0e0e0;z-index:99;width:"+weight+"px;height:"+height+"px;top:"+(windowHeight-height-126)+"px;right:"+(windowWidth-weight-1)+"px'>"+
                "<div style='line-height:32px;background:#f6f0f3;border-bottom:1px solid #e0e0e0;font-size:14px;padding:0 0 0 10px;'>" +
                "<div style='float:left;'><b>"+title+"</b></div><div id='close_"+id+"' style='float:right;cursor:pointer;background: #3E97DF;color: white;width: 25px;padding-left: 8px;'><b style='margin-right: 5px'>X</b></div>" +
                "<div style='clear:both'></div>"+
                "</div>" +
                "<div id='content' style='background: white;text-indent: 2em;margin: 30px 25px auto 25px;font-size: 16px;'><span>" +
                content+
                "</span></div>"+
                "</div>"
            );
        }

        var out_colse=function(id){
            $("#close_"+id).bind("click", function(){
                $('#'+id).fadeOut(1000);
            });
        };
        this.open = function (id, title,content){
            init(id, title,content);
            out_colse(id)
            $('#'+id).fadeIn(1000);
        };

        this.colse=function close(id){
            $('#'+id).fadeOut(1000);
        }



    }

})(jQuery);